package com.cloudfun.campusshare.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;

/**
 * @author : zhangyongjie
 * @version : 1.0
 * @createTime : 2021/3/29 11:53
 * @description :
 */
@Data
@Entity
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Table(name = "business_order_relation")
public class BusinessOrderRelationEntity extends BaseEntity{

    @Id
    @GenericGenerator(name = "id_uuid", strategy = "uuid")
    @GeneratedValue(generator = "id_uuid")
    @Column(name = "id", unique = true, columnDefinition = ("varchar(40) not null comment '主键uuid'"))
    private String id;

    @Column(name = "wechat_order_no", columnDefinition = ("varchar(40) not null comment '微信交易单号'"))
    private String weChatOrderNo;

    @Column(name = "order_no", columnDefinition = ("varchar(40) not null comment '系统订单编号'"))
    private String orderNo;

    @Column(name = "order_id", columnDefinition = ("varchar(40) not null comment '系统订单Id'"))
    private String orderId;
}
